const router = require('express').Router()
const path = require('path')
const fs = require('fs')

// 自动导入模块路由
let dirs = fs.readdirSync(path.join(__dirname, 'routes'))
dirs.forEach(dir => {
  router.use(require('./routes/' + dir))
})


// router.use(require('./routes/user'))

module.exports = router
